package com.genius.framework.multitenancy.repository;

import com.genius.framework.multitenancy.entity.TenantUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TenantUserRepository extends JpaRepository<TenantUser, String>, JpaSpecificationExecutor<TenantUser> {
    List<TenantUser> findByName(String name);
}
